package com.xinsoft.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.xinsoft.common.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 库存表
 * @TableName scm_stock
 */
@EqualsAndHashCode(callSuper = true)
@TableName(value ="scm_stock")
@Data
public class ScmStock extends BaseEntity implements Serializable {

    /**
     * 库存编码
     */
    private String stockCode;

    /**
     * 仓库ID
     */
    private Integer warehouseId;

    /**
     * 库位ID
     */
    private Integer warehItemId;

    /**
     * 物料ID
     */
    private Integer materialId;

    /**
     * 物料编码
     */
    private String materialNo;

    /**
     * 库存类型（生产入库、采购入库等）
     */
    private Integer stockType;

    /**
     * 库存批次
     */
    private String batchNo;

    /**
     * 冻结数量
     */
    private BigDecimal batchNumFrozen;

    /**
     * 可用数量
     */
    private BigDecimal batchNumFree;

    /**
     * 批次数量
     */
    private BigDecimal batchNum;

    /**
     * 批次价格
     */
    private BigDecimal batchPrice;

    /**
     * 批次辅助数量
     */
    private BigDecimal batchAssistNum;

    /**
     * 批次辅助价格
     */
    private BigDecimal batchAssistPrice;

    /**
     * 换算比例
     */
    private BigDecimal convCoefficient;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @TableField(exist = false)
    private List<ScmProduceItemFrozen> scmProduceItemFrozenList;
}